package com.yunshipei.model;

import java.io.Serializable;

import io.rong.app.App;

/**
 * Created by cike on 16/11/8.
 */

public class TaskModel implements Serializable {
    private String downloadUrl;
    private String saveDir;
    private String savedPath = "";
    private AppType type;

    public TaskModel() {}

    public TaskModel(String downloadUrl, String saveDir, AppType type) {
        this.downloadUrl = downloadUrl;
        this.saveDir = saveDir;
        this.type = type;
    }

    public TaskModel(String downloadUrl, String saveDir, AppType type, String savedPath) {
        this(downloadUrl, saveDir, type);
        this.savedPath = savedPath;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getSaveDir() {
        return saveDir;
    }

    public void setSaveDir(String saveDir) {
        this.saveDir = saveDir;
    }

    public AppType getType() {
        return type;
    }

    public void setType(AppType type) {
        this.type = type;
    }

    public String getSavePath() {
        return savedPath;
    }

    public void setSavePath(String savePath) {
        this.savedPath = savePath;
    }
}
